﻿using System;
using Bumblebee;

namespace BeetleXGateway
{
    public class Program
    {
        private static Gateway? gateway;

        static void Main(string[] args)
        {
            gateway = new Gateway();
            gateway.HttpOptions(o =>
            {
                o.Port = 10086;
                o.LogToConsole = true;
                o.LogLevel = BeetleX.EventArgs.LogType.Error;
            });
            gateway.Open();
            gateway.LoadPlugin(
                typeof(Bumblebee.Configuration.Management).Assembly
                //typeof(Bumblebee.Consul.ConsulPlugin).Assembly
                //typeof(Bumblebee.Caching.default_request_cached_reader).Assembly
                //typeof(Bumblebee.ConcurrentLimits.UrlConcurrentLimits).Assembly
                );
            Console.Read();
        }

    }
}